home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / devices / parallel.inc < prev    next >
Text File  |  1998-06-24  |  1KB  |  60 lines

  1. include "inc/exec/io.inc";
  2.  
  3. struct IOPArray is
  4.   PTermArray0:ulong;
  5.   PTermArray1:ulong;
  6. ;
  7.  
  8. struct IOExtPar is
  9.   IOPar:IOStdReq;
  10.   io_PExtFlags:ulong;
  11.   io_Status:ubyte;
  12.   io_ParFlags:ubyte;
  13.   io_PTermArray:IOPArray;
  14. ;
  15.  
  16. def PARB_SHARED = 5;
  17. def PARF_SHARED = (1<<5);
  18. def PARB_SLOWMODE = 4;
  19. def PARF_SLOWMODE = (1<<4);
  20. def PARB_FASTMODE = 3;
  21. def PARF_FASTMODE = (1<<3);
  22. def PARB_RAD_BOOGIE = 3;
  23. def PARF_RAD_BOOGIE = (1<<3);
  24.  
  25. def PARB_ACKMODE = 2;
  26. def PARF_ACKMODE = (1<<2);
  27.  
  28. def PARB_EOFMODE = 1;
  29. def PARF_EOFMODE = (1<<1);
  30.  
  31. def IOPARB_QUEUED = 6;
  32. def IOPARF_QUEUED = (1<<6);
  33. def IOPARB_ABORT = 5;
  34. def IOPARF_ABORT = (1<<5);
  35. def IOPARB_ACTIVE = 4;
  36. def IOPARF_ACTIVE = (1<<4);
  37.  
  38. def IOPTB_RWDIR = 3;
  39. def IOPTF_RWDIR = (1<<3);
  40. def IOPTB_PARSEL = 2;
  41. def IOPTF_PARSEL = (1<<2);
  42. def IOPTB_PAPEROUT = 1;
  43. def IOPTF_PAPEROUT = (1<<1);
  44. def IOPTB_PARBUSY = 0;
  45. def IOPTF_PARBUSY = (1<<0);
  46.  
  47. def PARALLELNAME = "parallel.device";
  48.  
  49. def PDCMD_QUERY = (CMD_NONSTD);
  50. def PDCMD_SETPARAMS = (CMD_NONSTD+1);
  51.  
  52. def ParErr_DevBusy = 1;
  53. def ParErr_BufTooBig = 2;
  54. def ParErr_InvParam = 3;
  55. def ParErr_LineErr = 4;
  56. def ParErr_NotOpen = 5;
  57. def ParErr_PortReset = 6;
  58. def ParErr_InitErr = 7;
  59.  
  60.